
package jnpf.property.service;

import com.baomidou.mybatisplus.extension.service.IService;
import jnpf.property.entity.ZcInspectionPlanEntity;
import jnpf.property.entity.ZcInspectionPlanVo;
import jnpf.property.model.inspection.ZcInspectionPlanForm;
import jnpf.property.model.inspection.ZcInspectionPlanPagination;

import java.util.List;

/**
 * 巡检计划 Service
 */
public interface ZcInspectionPlanService extends IService<ZcInspectionPlanEntity> {

    /**
     * 创建巡检计划
     *
     * @param form 巡检计划表单
     * @return 操作结果
     */
    boolean creatPlan(ZcInspectionPlanForm form);

    /**
     * 更新巡检计划
     *
     * @param form 巡检计划表单
     * @return 操作结果
     */
    boolean updatePlan(ZcInspectionPlanForm form);

    /**
     * 获取巡检计划信息
     *
     * @param id 巡检计划id
     * @return 巡检计划
     */
    ZcInspectionPlanVo getPlanInfo(String id);

    /**
     * 获取巡检计划列表
     *
     * @param pagination 查询条件
     * @return 巡检计划集合
     */
    List<ZcInspectionPlanEntity> getPlanList(ZcInspectionPlanPagination pagination);

}
